package com.atguigu.spzx.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.atguigu.spzx.manager.entity.OrderStatistics;
import com.atguigu.spzx.manager.vo.orderStatistics.OrderStatisticsReqVo;

import java.util.List;

/**
 * <p>
 * OrderStatisticsMapper
 * </p>
 *
 * @author flyduck
 * @since 2023/11/1
 */
@Mapper
public interface OrderStatisticsMapper extends BaseMapper<OrderStatistics> {

    /**
     * 根据orderStatisticsReqVo条件查询list数据
     *
     * @param reqVo
     * @return
     */
    List<OrderStatistics> getOrderStatisticsListByQuery(@Param("vo") OrderStatisticsReqVo reqVo);

    /**
     * 统计指定日期的交易金额和交易量
     * @param date
     * @return
     */
    OrderStatistics getStatisticsByDate(String date);
}
